<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   
    <!-- 关联预案 -->
    <title>防控目标</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link href="/ag/zhh/content/css/eventRelate.css" rel="stylesheet" type="text/css" />
 <link type="text/css" href="/ag/css/dialog/jquery.ui.all.css" rel="stylesheet" />
 	<style type="text/css">
		body { font-size: 62.5%;margin-left:0;margin-top:0;margin-right:0; }
		label { display:block; font-size:15px;font-weight:500;}
		input.text { margin-bottom:12px; width:95%; padding: .4em;height:30px;}
		fieldset { padding:0; border:0; margin-top:25px; }
		h1 { font-size: 1.2em; margin: .6em 0; }
		div#users-contain { width: 350px; margin: 20px 0; }
		div#users-contain table { margin: 1em 0; border-collapse: collapse; width: 100%; }
		div#users-contain table td, div#users-contain table th { border: 1px solid #eee; padding: .6em 10px; text-align: left; }
		.ui-dialog .ui-state-error { padding: .3em; }
		.one{margin-top:-20px;}
		.validateTips { border: 0px solid transparent; padding: 0.3em; width:95%;}
	</style>
  </head>
  
  <body>
    		<div id="result" >
			<table width="99%" border="0" align="center" cellpadding="0"
				cellspacing="0">
				<tr>
					<td>
						<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
						<td width="14" height="15" background="/ag/tab/images/tab_05.gif" style="background-repeat:repeat-y;padding-top:-20px"><img src="/ag/tab/images/tab_03.gif" width="14" height="100%" /></td>
						<td background="/ag/tab/images/tab_05.gif" style="background-repeat:repeat-x;"><img src="/ag/tab/images/311.gif" width="16"/>
							<span class="STYLE4">防控目标</span>
							
						</td>
						<td width="120" align="center" background="/ag/tab/images/tab_05.gif" style="background-repeat:repeat-x;padding-top:3px;"><input type="button" id="addbut" value="增加" style="border:none;width:50px;height:25px;margin:2px;background-color:#c0c0c0;" size="100"></td>
						<td width="14"><img src="/ag/tab/images/tab_07.gif" width="14"/></td></tr>
						</table>
					</td>
				</tr>
				<tr>
					<td>
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="9" background="/ag/tab/images/tab_12.gif">&nbsp;</td>
								<td bgcolor="#f3ffe3">
									<table width="99%" border="0" align="center" cellpadding="0"
										cellspacing="1" bgcolor="#c0de98">
										<tr>
											<td width="8%" height="26" background="/ag/tab/images/tab_14.gif"
												class="STYLE1">
												<div align="center" class="STYLE2 STYLE1">
													防控目标号
												</div></td>
											<td width="8%" height="26" background="/ag/tab/images/tab_14.gif"class="STYLE1">
												<div align="center" class="STYLE2 STYLE1">
													事件编号
												</div></td>
											<td width="14%" height="26" background="/ag/tab/images/tab_14.gif"class="STYLE1">
												<div align="center" class="STYLE2 STYLE1">
													防控目标名
												</div></td>
											<td width="60%" height="26" background="/ag/tab/images/tab_14.gif"class="STYLE1">
												<div align="center" class="STYLE2 STYLE1">
													防控目标原因
												</div></td>
								
												<td width="5%" height="18"  background="/ag/tab/images/tab_14.gif"><div align="center" class="STYLE2 STYLE1">编辑</div></td>
           										<td width="5%" height="18" background="/ag/tab/images/tab_14.gif" ><div align="center" class="STYLE2 STYLE1">删除</div></td>
											
										</tr>
										<c:forEach var='result' items='${result}' varStatus='status'>
										<tr style="cursor: pointer;">
											<td height="18" bgcolor="#FFFFFF" >
												<div align="center" class=" STYLE1">
													${result.TId}
												</div>
												
											</td>
											<td height="18" bgcolor="#FFFFFF" class="STYLE2" >
												<div align="center" class="STYLE1 STYLE1">
													${result.tbEvent.EId} 
												</div>
												
											</td>
											<td height="18" bgcolor="#FFFFFF" >
												<div class=" STYLE1">
													${result.TName} 
												</div>
												
											</td>
											<td height="18" bgcolor="#FFFFFF" >
												<div class=" STYLE1">
													${result.TCause} 
												</div>
												
											</td>
											<td height="18" bgcolor="#FFFFFF" align="center"><input type="button" id="find" value="修改" class="button STYLE2 STYLE1 modify" name=${result.TId}></td>
           									<td height="18" bgcolor="#FFFFFF" align="center"><input type="button" id="find" value="删除" class="button STYLE2 STYLE1 delete" name=${result.TId}></td>
										</tr>
										</c:forEach>														
									</table></td>
								<td width="9" background="/ag/tab/images/tab_16.gif">
									&nbsp;</td>
							</tr>
						</table></td>
				</tr>
				<tr>
					<td >
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="15">
									<img src="/ag/tab/images/tab_20.gif" width="15" />
								</td>
								<td background="/ag/tab/images/tab_21.gif" width="100%" align="right">
								
								</td>
								<td width="14">
									<img src="/ag/tab/images/tab_22.gif" width="14" height="29" />
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</div>
		
		<script type="text/javascript" src="/ag/js/dialog/jquery-1.4.2.js"></script>
		
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.core.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.widget.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.mouse.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.button.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.draggable.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.position.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.resizable.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.ui.dialog.js"></script>
		<script type="text/javascript" src="/ag/js/dialog/jquery.effects.core.js"></script>
		<script type="text/javascript"src="/ag/css/dialog/jquery.bgiframe-2.1.1.js"></script>
		<script type="text/javascript" src="/ag/zhh/content/js/deleteTarget.js"></script>
		<script type="text/javascript" src="/ag/zhh/content/js/modifyTarget.js"></script>
		<script type="text/javascript" src="/ag/zhh/content/js/addTarget.js"></script>
			<!-- 增加的弹出框 -->
			<div id="add" title="增加" style="display:none;">
				<p class="validateTips"></p>
				<form class="one">
					<fieldset>
						<label for="addTName">
							防控目标名称(50字)
						</label>
						<textarea rows="3" cols="60" id="addTName"></textarea>
						<!-- <input type="text" name="TName" id="addTName" class="text ui-widget-content ui-corner-all" /> -->
						<br/><br/>
						<label for="TCause">
						防控目标原因(200字)
						</label>
						<textarea rows="7" cols="60" id="addTCause"></textarea>
						<!-- <input type="text" name="TCause" id="TCause" class="text ui-widget-content ui-corner-all"> -->
						
						
					</fieldset>
				</form>
			<!-- 确认增加的弹出框 -->
					<div id="addConfirm">
						<label>确定?</label>
					</div>
			</div>
			<!-- 编辑的弹出框 -->
			<div id="edit" title="编辑" style="display:none;">
					<p class="validateTips"></p>
					<form class="one">
						<fieldset>
						<input type="hidden" name="dtId" value="" id="editTId"/>
							<label for="editTName">
								防控目标名称(50字)
							</label>
							<textarea rows="3" cols="60" id="editTName"></textarea>
							
							<br/><br/>
							<label for="editTCause">
								防控目标原因(200字)
							</label>
							<textarea rows="7" cols="60" id="editTCause"></textarea>
						</fieldset>
					</form>
					<!-- 确认修改的弹出框 -->
					<div id="editConfirm">
						<label>确定?</label>
					</div>
			
			</div>
			<!-- 确认删除的对话框 -->
			<div id="deleteConfirm">
				<label>确定?</label>
			</div>
			
			<!-- 操作结果的提示框 -->	
			<div id="message">
			</div>
		  </body>
</html>


